<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2023/7/10
  Time: 13:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的订单</title>
</head>
<body>
<h1>我的订单</h1>
<a href="${pageContext.request.contextPath}/findAll.product">返回购物</a>
<hr>
<table border="1">
    <tr>
        <th>序号</th>
        <th>订单号</th>
    </tr>
    <c:forEach items="${orders}" var="order" varStatus="i">
        <tr>
            <td>${i.index + 1}</td>
            <td><a href="${pageContext.request.contextPath}/findDetail.order?id=${order.id}">${order.no}</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
